package com.jtech.together.util;

/**
 * 性别通用方法
 * Created by wuxubaiyang on 2017/5/10.
 */

public class SexUtil {
    public static final String[] SexStrs = {"未知", "男", "女"};

    public static String getSex(int sex) {
        if (sex > SexStrs.length) {
            return "未知";
        }
        return SexStrs[sex];
    }

    /**
     * 获取性别的图标
     *
     * @param sex
     * @return
     */
    public static int getSexIcon(int sex) {
        switch (sex) {
            case 0://未知
                return 0;
            case 1://男
                return 0;
            case 2://女
                return 0;
            default:
                return 0;
        }
    }
}